package com.sf.bank.reflection;

public class UserInfo {
    //用户ID
    private String id;
    //用户姓名
    private String name;
    //用户年龄
    private int age;

    public UserInfo() {
        System.out.println("无参构造器");
    }

    public UserInfo(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
        System.out.println("有参构造器");
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
